import { EExceptionStatusCode, IException } from '@/types/common'

// 请求超时 异常类
export default class TimeoutError extends Error implements IException {
  // 状态码
  public statusCode: EExceptionStatusCode

  // 构造函数
  constructor(message: string = 'Request Timeout') {
    super(message)
    this.statusCode = EExceptionStatusCode.REQUEST_TIMEOUT
    this.name = 'RequestTimeoutError'
  }
}
